/*
 * ListOperatorExpression.java
 *
 * Created on March 1, 2007, 10:17 PM
 *
 * (C) R. Alexander Milowski alex@milowski.com
 */

package com.smallx.xpath.parser;

import org.infoset.xml.Name;

/**
 *
 * @author R. Alexander Milowski
 */
public class NumberExpression extends VoidExpression {
   
   double value;
   
   /** Creates a new instance of ListOperatorExpression */
   public NumberExpression(double value) {
      super(Expression.Operator.Number);
      this.value = value;
   }
   
   public double getValue() {
      return value;
   }
   
   public String toString() {
      return "("+operator+" "+value+" )";
   }
}
